package com.wei.czz.framework.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wei.czz.framework.admin.entity.HistoryPasswordEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-09-26 22:09:00
 * className: HistoryPasswordDao 用户历史密码操作请求数据库交互接口
 * version: 1.0
 * description:
 */
public interface HistoryPasswordDao extends BaseMapper<HistoryPasswordEntity> {

    /**
     * 根据用户id，获取用户最近使用的前三个旧密码
     * @param userId 用户id
     */
    List<String> getFirst3OldPasswordByUserId(@Param("userId") Long userId);
}
